//vue2editor-toolbar
export const customToolbar = [
  ['clean'], //清除字体样式
  ['bold', 'italic', 'underline', 'strike'],        // toggled buttons
  ['blockquote', 'code-block'],   //引用，代码块
  ['link', 'image', 'video'],

  [{ 'header': 1 }, { 'header': 2 }],               // custom button values
  [{ 'list': 'ordered' }, { 'list': 'bullet' }],     //列表 
  [{ 'script': 'sub' }, { 'script': 'super' }],      //上标/下标
  [{ 'indent': '-1' }, { 'indent': '+1' }],          //缩进
  [{ 'direction': 'rtl' }],                         //文本方向

  [{ 'size': ['small', false, 'large', 'huge'] }],  // custom dropdown
  [{ 'header': [1, 2, 3, 4, 5, 6, false] }],

  [{ 'color': [] }, { 'background': [] }],          // dropdown with defaults from theme
  [{ 'font': [] }],
  [{ 'align': [] }]
]

//更多上传介绍 请访问 https://www.froala.com/wysiwyg-editor/docs/options
export const froalaConfig = {
  //, 'fullscreen'
  toolbarButtons: ['undo', 'redo', 'clearFormatting', 'color','subscript','superscript',
  '|', 'bold', 'italic', 'underline','strikeThrough',
  '|', 'fontFamily', 'fontSize', 'color', 'inlineStyle', 'paragraphStyle',
  '|','paragraphFormat', 'align', 'formatOL', 'formatUL', 'outdent', 'indent', 'quote', '-', 'insertLink', 'insertImage', 'insertVideo', 'embedly', 'insertFile', 'insertTable', 
  '|', 'emoticons', 'specialCharacters', 'insertHR', 'selectAll', 
  '|', 'print', 'spellChecker', 'help', 
  '|','html'],
  theme: "dark",//主题
  placeholder: "请填写内容",
  language: "zh_cn",//国际化
  imageUploadURL: "/api/uploadImage/froalaEditPlugin",//上传url
  fileUploadURL: "http://i.froala.com/upload",//上传url 
  quickInsertButtons: ['image', 'table', 'ul', 'ol', 'hr'],//快速插入项
  // toolbarVisibleWithoutSelection: true,//是否开启 不选中模式
  disableRightClick: true,//是否屏蔽右击
  colorsHEXInput: true,//打开16进制色值
  toolbarSticky: true,//操作栏是否自动吸顶
  zIndex: -1,
  events: {
    'froalaEditor.initialized': function () {
      //console.log('initialized')
    }
  },
  imageDefaultWidth:100,//上传图片后的默认大小
  imageResizeWithPercent: true,//不设置这个，imageDefaultWidth的单位为像素，设置后为%
  heightMin:'400px',//最小高度
  width: '1200px'
}

export const hotValues = [
  {label: "是", value: "1"},
  {label: "否", value: "0"}
]

export const cities = [
  { label: "广州", value: "广州" },
  { label: "深圳", value: "深圳" },
  { label: "东莞", value: "东莞" },
  { label: "佛山", value: "佛山" },
  { label: "中山", value: "中山" },
  { label: "惠州", value: "惠州" }
];

export const propertyTypeOptions = ["住宅", "公寓", "别墅", "商铺", "综合体"];

export const imageTypes = [
  {label:"实景图",value:"main"},
  {label:"户型图",value:"apartment"},
  {label:"展示图",value:"display"}
];

export const menus = [
  {
    name: "楼盘管理",
    index:"1",
    subMenus: [
      {
        index:"1-1",
        name: "楼盘列表",
        path: "/hourseList"
      },
      {
        index:"1-2",
        name: "新增楼盘",
        path: "/addHourseInfo"
      }
    ]
  },
  {
    name: "资讯管理",
    index:"2",
    subMenus: [
      {
        index:"2-1",
        name: "资讯列表",
        path: "/newsList"
      },
      {
        index:"2-2",
        name: "新增资讯",
        path: "/addNewsInfo"
      }
    ]
  },
  {
    name: "预约看房",
    index:"3",
    subMenus: [
      {
        index:"3-1",
        name: "登记列表",
        path: "/subscribeList"
      }
    ]
  }
]